package com.gsx.service.impl;

import com.gsx.bean.Good;
import com.gsx.dao.GoodMapper;
import com.gsx.service.GoodService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description TODO
 * @Authoe gsx
 * @Date 2021/04/06 下午 4:34
 **/
@Service
public class GoodServiceImpl implements GoodService {
    @Resource
    private GoodMapper goodMapper;
    @Override
    public List<Good> getGoodAllByBid(int bid) {
        return goodMapper.selectALLByBid(bid);
    }

    @Override
    public Good getGoodById(int id) {
        return goodMapper.selectByPrimaryKey(id);
    }
}
